<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('Wuye/carousel')}">轮播列表</a></li>
        <li class="active"><a href="{:url('Wuye/carouseladd')}">添加轮播图</a></li>
    </ul>
    <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('Wuye/carouselSave')}" enctype="multipart/form-data">

        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required">*</span>轮播简述:</label>
            <div class="col-md-6 col-sm-10">
                <textarea style="overflow-x:hidden;" class="form-control" name="desc" value="">{$res.desc|default=''}</textarea>
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required">*</span>轮播图片:</label>
            <div class="col-md-6 col-sm-10">
                <input type="file" class="form-control" name="imgsrc" value="{$res.imgsrc|default=''}">
                <notempty name="$res.imgsrc">
                    <img src="<?php echo DS . 'upload' . DS?>{$res.imgsrc|default=''}" style="width:100px;margin-top: 10px;">
                </notempty>

            </div>
            <p style="color:red;font-weight: bold">上传图片规定：图片尺寸必须为500px*333px</p>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required">*</span>轮播链接:</label>
            <div class="col-md-6 col-sm-10">
                <input style="overflow-x:hidden;" class="form-control" name="url" value="{$res.url|default=''}"/>
            </div>
        </div>

        <input type="hidden" value="{$res.id|default=''}" name="id">

        <div class="col-sm-offset-2 col-sm-10">
            <input type="submit" class="btn btn-primary" value="保存"></input>
            <!--<a class="btn btn-default" href="__URL__">返回</a>-->
        </div>
    </form>

</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>